home *** CD-ROM | disk | FTP | other *** search
- Path: news.uni-c.dk!news
- From: maspsr@dou.ou.dk (peter S°rensen)
- Newsgroups: comp.lang.c
- Subject: BAD FILE NUMBER
- Date: 25 Mar 1996 14:14:36 GMT
- Organization: DOU
- Message-ID: <4j69oc$3pb@news.uni-c.dk>
- NNTP-Posting-Host: peter.dou.dk
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.93.11
-
- Hi,
-
- I have a very annoying problem in a DLL written in C.
-
- The functions in the dll is to be used from paradox for windows.
-
- One of the functions will open a file and read som ascii information
- into memory. In some cases the open succeed but I get a file pointer
- back whichs is BAD. I don't get an error in the open. I open with:
-
- if ( ( fp = fopen("somefile","r")) == NULL)
- ..... give an errormessage
-
-
- When I afterwards try to read from this pointer I get:
-
- BAD FILE NUMBER
-
- Can someone give me in hint to solve this problem????
-
-
- Regards
-
- Peter Sorensen/University of Odense,dk/e-mail:maspsr@dou.ou.dk
-
-